﻿namespace Resharper.Abstractions.CodeDom.TypeMembers.Fields
{
  using JetBrains.Annotations;
  using JetBrains.ReSharper.Psi.CSharp.Tree;

  /// <summary>Defines the <see cref="Field"/> class.</summary>
  public class Field : TypeMember
  {
    #region Constructors and Destructors

    /// <summary>Initializes a new instance of the <see cref="Field"/> class.</summary>
    /// <param name="field">The field.</param>
    internal Field([NotNull] IFieldDeclaration field) : base(field)
    {
    }

    #endregion

    #region Properties

    /// <summary>The field field.</summary>
    [NotNull]
    internal IFieldDeclaration InternalField
    {
      get
      {
        return (IFieldDeclaration)this.InternalTreeNode;
      }
    }

    #endregion
  }
}